home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Pro
/
CD Pro.iso
/
PIIXDRV
/
NT
/
PIIXDRV.Z
/
OEMSETUP.INF
< prev
next >
Wrap
INI File
|
1996-10-14
|
18KB
|
472 lines
;;/*++
;;
;;Copyright: (c) 1996, Intel Corporation
;;
;;File Name: oemsetup.inf
;;
;;Abstract: Device Information File (INF) for the PIIX Bus Master IDE
;; device driver for Windows NT* 3.5x and 4.x.
;;
;;Environment: Windows NT* 3.5x, 4.x
;;
;;Notes:
;;
;;Items in file:
;;
;;Revision History:
;; 07 Jun, 1996 Created the file.
;; 30 Aug, 1996 Added checks to make the file compatible 3.5x and 4.x.
;;--*/
[Identification]
OptionType = SCSI
[MiniportDrivers]
piixide = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 25, %SystemRoot%\System32\IoLogMsg.dll , 7
[Identify]
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
goto returnoptions
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
returnoptions = +
set OptionList = ^(Options, 0)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
set Status = STATUS_FAILED
set DrivesToFree = {}
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
else
set Status = STATUS_NOLANGUAGE
goto finish_InstallOption
endif
read-syms Strings$($0)
set OptionList = ^(Options, 0)
ifcontains $(Option) in $(OptionList)
else
Debug-Output "OEMSETUP.INF: SCSI option is not supported."
goto finish_InstallOption
endif
set OptionList = ""
set MiniportDriver = #(Options, $(Option), 1)
set Type = $(#(MiniportDrivers, $(MiniportDriver), 1))
set Group = #(MiniportDrivers, $(MiniportDriver), 2)
set ErrorControl = $(#(MiniportDrivers, $(MiniportDriver), 3))
set Tag = #(MiniportDrivers, $(MiniportDriver), 4)
set EventMessageFile = #(MiniportDrivers, $(MiniportDriver), 5)
set TypesSupported = #(MiniportDrivers, $(MiniportDriver), 6)
set Start = $(!SERVICE_BOOT_START)
installtheoption = +
ifstr(i) $(AddCopy) == "YES"
set DoActualCopy = NO
set FileToCheck = #(Files-ScsiMiniportDrivers, $(MiniportDriver), 2)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
ifstr(i) $(STATUS) == NO
set DoActualCopy = YES
endif
ifstr(i) $(DoActualCopy) == NO
shell "subroutn.inf" DriversExist $($0) $(String1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMSETUP.INF: shelling DriversExist failed"
goto finish_InstallOption
endif
ifstr(i) $($R0) == STATUS_CURRENT
else-ifstr(i) $($R0) == STATUS_NEW
set DoActualCopy = YES
else-ifstr(i) $($R0) == STATUS_USERCANCEL
Debug-Output "OEMSETUP.INF: User cancelled SCSI installation"
goto finish_InstallOption
else
Debug-Output "OEMSETUP.INF: Error reported in DriversExist routine in SUBROUTN.INF"
goto finish_InstallOption
endif
endif
ifstr(i) $(DoActualCopy) == YES
shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMSETUP.INF: shelling DoAskSourceEx failed"
goto finish_InstallOption
endif
ifstr(i) $($R0) == STATUS_SUCCESSFUL
set SrcDir = $($R1)
ifstr(i) $($R2) != ""
set DrivesToFree = >($(DrivesToFree), $($R2))
endif
else
Debug-Output "OEMSETUP.INF: User cancelled asking source."
goto finish_InstallOption
endif
install Install-AddCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
Debug-Output "Adding SCSI files to copy list failed"
goto finish_InstallOption
endif
else
set DoCopy = NO
endif
endif
ifstr(i) $(DoCopy) == "YES"
read-syms ProgressCopy$($0)
install Install-DoCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
Debug-Output "Copying files failed"
goto finish_InstallOption
else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
set Status = STATUS_USERCANCEL
goto finish_InstallOption
endif
endif
ifstr(i) $(DoConfig) == "YES"
shell "registry.inf" CheckSetupModify
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto finish_InstallOption
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
goto finish_InstallOption
endif
set ServiceNode = $(MiniportDriver)
set ServiceBinary = System32\drivers\#(Files-ScsiMiniportDrivers, $(MiniportDriver), 2)
set ServicesValues = { +
{Type, 0, $(!REG_VT_DWORD), $(Type) }, +
{Start, 0, $(!REG_VT_DWORD), $(Start) }, +
{Group, 0, $(!REG_VT_SZ), $(Group) }, +
{ErrorControl, 0, $(!REG_VT_DWORD), $(ErrorControl) }, +
{Tag, 0, $(!REG_VT_DWORD), $(Tag) }, +
{BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary) } +
}
;*****************
;* PIIXIDE BEGIN *
;*****************
set ParametersValues = { +
{UseLbaMode, 0, $(!REG_VT_DWORD), 4294967295} +
{UseMultiBlock, 0, $(!REG_VT_DWORD), 4294967295} +
{PrimaryMasterMode, 0, $(!REG_VT_DWORD), 4294967295} +
{PrimarySlaveMode, 0, $(!REG_VT_DWORD), 4294967295} +
{SecondaryMasterMode, 0, $(!REG_VT_DWORD), 4294967295} +
{SecondarySlaveMode, 0, $(!REG_VT_DWORD), 4294967295} +
{AutoConfiguration, 0, $(!REG_VT_DWORD), 4294967295} +
}
;*****************
;* PIIXIDE END *
;*****************
set DeviceValues = {}
set EventLogValues = { +
{EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
{TypesSupported, 0, $(!REG_VT_DWORD), $(TypesSupported) } +
}
shell "registry.inf" MakeServicesEntry $(ServiceNode) +
$(ServicesValues) +
$(ParametersValues) +
$(DeviceValues) +
$(EventLogValues) +
Parameters
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
goto finish_InstallOption
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
Debug-Output "MakeServicesEntry failed for SCSI"
goto finish_InstallOption
endif
; now check for version of NT
;
set NT_REL = "NT_40"
; now look in HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion and check for 4.0/3.5X
set NTReleaseKey = "SOFTWARE\Microsoft\Windows NT\Curr